package com.xxx.dao;

import com.xxx.entity.Reservation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxx.entity.dto.ReservationDto;
import com.xxx.entity.query.ReservationQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xxx
 * @since 2024-11-24
 */

@Mapper
public interface ReservationDao extends BaseMapper<Reservation> {
    List<ReservationDto> selectByPage(@Param("current") Integer current,
                                  @Param("size") Integer size);
    List<ReservationDto> selectByCondition(ReservationQuery reservationQuery);
}
